package cn.edu.ctbu.api01.service;

import cn.edu.ctbu.api01.domain.Student;
import cn.edu.ctbu.api01.exception.RException;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
public interface IStudentService {

    public Page<Student> getAll(Pageable pageable);

    public List<Student> getAll(Example<Student> example);

    public Boolean validUserNameAndPassword(String userName, String password) throws Exception, RException;

    public List<Student> findByNameAndPassword(String name, String password) throws Exception, RException;
}
